home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 41
/
Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso
/
Aminet
/
comm
/
tcp
/
samba_2.0.7.lha
/
source
/
amiga_rcs
/
Assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-12-25
|
6KB
|
270 lines
head 1.8;
access;
symbols
V1_19:1.8
V1_18:1.7
V1_15:1.7
V1_12:1.6
V1_11:1.6
V1_10:1.6
V1_9:1.6
V1_8:1.6
V1_7:1.6
V1_6:1.6
V1_5:1.5
V1_4:1.3
V1_3:1.3
V1_2:1.2
V1_1:1.1;
locks
olsen:1.8; strict;
comment @ * @;
1.8
date 2000.12.25.11.49.10; author olsen; state Exp;
branches;
next 1.7;
1.7
date 2000.05.22.19.10.30; author olsen; state Exp;
branches;
next 1.6;
1.6
date 99.03.06.21.02.08; author olsen; state Exp;
branches;
next 1.5;
1.5
date 99.02.22.15.44.52; author olsen; state Exp;
branches;
next 1.4;
1.4
date 99.02.22.15.14.19; author olsen; state Exp;
branches;
next 1.3;
1.3
date 99.02.20.17.43.05; author olsen; state Exp;
branches;
next 1.2;
1.2
date 99.02.20.14.44.54; author olsen; state Exp;
branches;
next 1.1;
1.1
date 99.02.12.12.18.01; author olsen; state Exp;
branches;
next ;
desc
@.
@
1.8
log
@.
@
text
@/*
* $Id: Assert.h 1.7 2000/05/22 19:10:30 olsen Exp olsen $
*
* :ts=8
*
* AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V3 API
* and the SAS/C V6.58 compiler.
*
* Copyright (C) 1999-2000 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/****************************************************************************/
/* IMPORTANT: If DEBUG is redefined, it must happen only here. This
* will cause all modules to depend upon it to be rebuilt
* by the smakefile (that is, provided the smakefile has
* all the necessary dependency lines in place).
*/
/*#define DEBUG*/
/****************************************************************************/
#ifdef ASSERT
#undef ASSERT
#endif /* ASSERT */
#define PUSH_ASSERTS() PUSHDEBUGLEVEL(0)
#define PUSH_REPORTS() PUSHDEBUGLEVEL(1)
#define PUSH_CALLS() PUSHDEBUGLEVEL(2)
#define PUSH_ALL() PUSHDEBUGLEVEL(2)
#define POP() POPDEBUGLEVEL()
#if defined(DEBUG) && defined(__SASC)
void _ASSERT(int x,const char *xs,const char *file,int line,const char *function);
void _SHOWVALUE(unsigned long value,int size,const char *name,const char *file,int line);
void _SHOWSTRING(const char *string,const char *name,const char *file,int line);
void _SHOWMSG(const char *msg,const char *file,int line);
void _ENTER(const char *file,int line,const char *function);
void _LEAVE(const char *file,int line,const char *function);
void _RETURN(const char *file,int line,const char *function,unsigned long result);
void _DPRINTF_HEADER(const char *file,int line);
void _DPRINTF(const char *format,...);
int _SETDEBUGLEVEL(int level);
void _PUSHDEBUGLEVEL(int level);
void _POPDEBUGLEVEL(void);
void _SETPROGRAMNAME(char *name);
#define ASSERT(x) _ASSERT((int)(x),#x,__FILE__,__LINE__,__FUNC__)
#define ENTER() _ENTER(__FILE__,__LINE__,__FUNC__)
#define LEAVE() _LEAVE(__FILE__,__LINE__,__FUNC__)
#define RETURN(r) _RETURN(__FILE__,__LINE__,__FUNC__,(unsigned long)r)
#define SHOWVALUE(v) _SHOWVALUE((unsigned long)(v),sizeof(v),#v,__FILE__,__LINE__)
#define SHOWSTRING(s) _SHOWSTRING((const char *)(s),#s,__FILE__,__LINE__)
#define SHOWMSG(s) _SHOWMSG((const char *)(s),__FILE__,__LINE__)
#define D(s) do { _DPRINTF_HEADER(__FILE__,__LINE__); _DPRINTF s; } while(0)
#define SETDEBUGLEVEL(l) _SETDEBUGLEVEL(l)
#define PUSHDEBUGLEVEL(l) _PUSHDEBUGLEVEL(l)
#define POPDEBUGLEVEL() _POPDEBUGLEVEL()
#define SETPROGRAMNAME(n) _SETPROGRAMNAME(n)
#undef DEBUG
#define DEBUG 1
#else
#define ASSERT(x) ((void)0)
#define ENTER() ((void)0)
#define LEAVE() ((void)0)
#define RETURN(r) ((void)0)
#define SHOWVALUE(v) ((void)0)
#define SHOWSTRING(s) ((void)0)
#define SHOWMSG(s) ((void)0)
#define D(s) ((void)0)
#define SETDEBUGLEVEL(l) ((void)0)
#define PUSHDEBUGLEVEL(l) ((void)0)
#define POPDEBUGLEVEL() ((void)0)
#define SETPROGRAMNAME(n) ((void)0)
#ifdef DEBUG
#undef DEBUG
#endif /* DEBUG */
#define DEBUG 0
#endif /* DEBUG */
/****************************************************************************/
@
1.7
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.6 1999/03/06 21:02:08 olsen Exp olsen $
d6 1
a6 1
* AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V4 API
@
1.6
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.5 1999/02/22 15:44:52 olsen Exp olsen $
d9 1
a9 1
* Copyright (C) 1999 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
@
1.5
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.4 1999/02/22 15:14:19 olsen Exp olsen $
d87 1
a87 1
#define SETDEBUGLEVEL(l) (0)
@
1.4
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.3 1999/02/20 17:43:05 olsen Exp olsen $
d34 1
a34 1
#define DEBUG
@
1.3
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.2 1999/02/20 14:44:54 olsen Exp olsen $
d34 1
a34 1
/*#define DEBUG*/
@
1.2
log
@.
@
text
@d2 1
a2 1
* $Id: Assert.h 1.1 1999/02/12 12:18:01 olsen Exp olsen $
d34 1
a34 1
#define DEBUG
@
1.1
log
@.
@
text
@d34 1
a34 1
/*#define DEBUG*/
@